package com.chenfan.process.dto;

import java.util.Objects;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author liuming
 * @date 2022/1/18
 */
@Data
public class StartUserDTO {

    @ApiModelProperty(value = "用户ID", example = "1")
    private Long userId;

    @ApiModelProperty(value = "用户名称", example = "大明")
    private String userName;

    private StartUserDTO() {}

    public StartUserDTO(Long userId, String userName) {
        Objects.requireNonNull(userId, "userId不能为空");
        Objects.requireNonNull(userName, "userName不能为空");
        this.userId = userId;
        this.userName = userName;
    }

}
